package com.estronger.shopmanage.bean.batch;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * author : DC-DingYG
 * e-mail : dingyg012655@126.com
 * time : 2020/09/16
 * desc : *待测量派工数据对象
 */
public class MeasurePGListData implements Serializable {
    public String measureid = "0";//任务ID
    public String buildname;//楼盘名称
    public String cstid;//客户ID
    public String cstname;//客户名称
    public String cstmobile;//客户手机
    public String address;//地址
    public String ordrdate;//下单日期
    public String navid;//导购员id
    public String navname;//导购员名称
    public String navmobile;//导购员手机号
    public String navemail;//导购员邮箱

    public String planmeasuredate;//预约测量时间
    public String firstdemand;//初步沟通需求
    public String plandesignername;//设计师姓名

    public String cstbuildname;
    public String remark;//备注
    public String cstemail;
    public String assigndate;
    public ArrayList<BatchPgGoodsItem> measureitem;


    public String getMeasureid() {
        return measureid == null ? "0" : measureid;
    }

    public String getCstname() {
        return cstname == null ? "" : cstname;
    }

    public String getCstbuildname() {
        if(cstbuildname == null || cstbuildname.equals("")){
            if(buildname == null) cstbuildname = "";
            else cstbuildname = buildname;
        }
        return cstbuildname;
    }

    public String getAddress() {
        return address == null ? "" : address;
    }

    public String getOrdrdate() {
        return ordrdate == null ? "" : ordrdate;
    }

    public String getPlanmeasuredate() {
        return planmeasuredate == null ? "" : planmeasuredate;
    }

    public void setPlanmeasuredate(String planmeasuredate) {
        this.planmeasuredate = planmeasuredate;
    }

    public String getCstmobile() {
        return cstmobile == null ? "" : cstmobile;
    }

    public String getCstid() {
        return cstid;
    }

    public String getNavid() {
        return navid;
    }

    public String getNavname() {
        return navname==null?"":navname;
    }

    public String getNavmobile() {
        return navmobile;
    }

    public String getNavemail() {
        return navemail;
    }

    public String getFirstdemand() {
        return firstdemand == null ? "" : firstdemand;
    }

    public void setFirstdemand(String firstdemand) {
        this.firstdemand = firstdemand;
    }

    public String getPlandesignername() {
        return plandesignername;
    }

    public String getRemark() {
        if(remark == null || remark.equals("")){
            remark = getFirstdemand();
        }
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCstemail() {
        return cstemail;
    }

    public String getAssigndate() {
        return assigndate;
    }

    public ArrayList<BatchPgGoodsItem> getMeasureitem() {
        return measureitem;
    }

    public void setMeasureitem(ArrayList<BatchPgGoodsItem> measureitem) {
        this.measureitem = measureitem;
    }
}
